package com.grj.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 预约操作日志表
 * @TableName reservation_operation_log
 */
@TableName(value ="reservation_operation_log")
@Data
public class ReservationOperationLog implements Serializable {
    /**
     * 日志ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 预约ID
     */
    @TableField(value = "reservation_id")
    private Long reservationId;

    /**
     * 预约单号
     */
    @TableField(value = "reservation_no")
    private String reservationNo;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 操作人类型：USER-用户，ADMIN-管理员，SYSTEM-系统
     */
    @TableField(value = "operator_type")
    private String operatorType;

    /**
     * 操作人ID
     */
    @TableField(value = "operator_id")
    private Long operatorId;

    /**
     * 操作类型：CREATE-创建，CANCEL-取消，EXTEND-延长，VERIFY-验证
     */
    @TableField(value = "operation")
    private String operation;

    /**
     * 操作内容（JSON格式）
     */
    @TableField(value = "content")
    private String content;

    /**
     * 
     */
    @TableField(value = "operation_time")
    private Date operationTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}